package string.nowcoder.easy;

import java.util.*;

/**
 * @author bruin_du
 * @description 抄送列表
 * https://www.nowcoder.com/questionTerminal/286af664b17243deb745f69138f8a800?
 * orderByHotValue=0&commentTags=Java&toCommentId=930669
 * @date 2022/6/4 14:55
 **/
public class SendList {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while(in.hasNextLine()){
            String str1 = in.nextLine();
            String str2 = in.nextLine();
            int i = 0;
            Set<String> set = new HashSet<>();
            while (i < str1.length()) {
                if (str1.charAt(i) == '\"') {
                    int end = str1.indexOf('\"',i + 1);
                    set.add(str1.substring(i + 1,end));
                    i = end + 2;
                } else {
                    int end = str1.indexOf(',', i);
                    if (end == -1) {
                        set.add(str1.substring(i,str1.length()));
                        break;
                    }
                    set.add(str1.substring(i,end));
                    i = end + 1;
                }
            }
            if (set.contains(str2)) {
                System.out.println("Ignore");
            } else {
                System.out.println("Important!");
            }
        }
    }
}
